#include <gtest/gtest.h>
#include "core/auth/shahmac256_signer.h"

using namespace aliyun;

TEST(core_auth, ShaHmac256Signer) {
  ShaHmac256Signer signer;
  ASSERT_STREQ("TpF1lE/avV9EHGWGg9Vo/QTd2bLRwFCk9jjo56uRbCo=",
    signer.SignString("this is a ShaHmac256 test.", "accessSecret").c_str());
}

// end of file
